#include "Line.h"
#include <math.h>
#include <Windows.h>
#include <gl\gl.h>  


Line::Line() : m_p0(Vector(0,0,0)), m_p1(Vector(0,0,0))
{

}

Line::Line(Vector p0, Vector p1)
{
	m_p0 = p0;
	m_p1 = p1;
}

Line::~Line()
{

}

void	Line::SetPos(int i, float x, float y)
{
	if (0 == i)
		m_p0.Set(x, y);
	else if (1 == i)
		m_p1.Set(x, y);

}

void	Line::SetColor(float x, float y)
{
	m_color.Set(x,y);
}

Vector	Line::GetColor() const 
{ 
	return this->m_color; 
}

Vector	Line::GetPos(int i) const 
{ 
	if (i) 
		return m_p1; 
	else 
		return m_p0; 
}
